import Ember from 'ember';

export default Ember.Controller.extend({
  mainController: Ember.inject.controller('business.mainpage'),
  switchPage(pageName) {
    this.get("mainController").switchMainPage(pageName);
  },

  actions:{
    qpTest: function() {
      console.log("qpTest in");
      this.get("mainController").switchMainPage("cs-home",{qp:"333"});
    },
    switLineuse: function() {
      this.switchPage("lineuse");
    },
    switWorkManage: function() {
      this.switchPage("workorder-management");
    },
    switSquare: function() {
      this.switchPage("task-square");
    },
    switMine: function() {
      this.switchPage("task-mine");
    },
  }
});
